﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAO
{
    public static class DanhSachVeDAO
    {
        public static QL_HuongRungEntities db = new QL_HuongRungEntities();
        public static List<DS_GIAVE> layDSGV()
        {
            List<DS_GIAVE> arrDSGV = db.DS_GIAVE.ToList();
            return arrDSGV;
        }

        public static DS_GIAVE layVe(int maVe)
        {
            DS_GIAVE ve = db.DS_GIAVE.Find(maVe);
            return ve;
        }
    }
}
